/**
 * Created By  醉美柳舞之众星捧月
 * @author Song
 * @date 2018/6/13 14:29
 */
/**
 * Author song  醉美柳舞之众星捧月
 * Date & Time  2018/6/13 14:59
 * Description  在实体上面进行ORM的各种配置
 */
import { Column, PrimaryGeneratedColumn, Table } from 'typeorm';

@Table()
export class User {
  @PrimaryGeneratedColumn()
  id: number;
  @Column({ length: 50 })
  name: string;
  @Column('text')
  description: string;
  @Column()
  fileName: string;
  @Column('int')
  views: number;
  @Column()
  isPublished: boolean;
}